/obj/item/weapon/cannibis
	name = "Cannibis"
	desc = "cannibis lol"
	icon = 'Cannibis.dmi'
	icon_state = "cannibis"
	w_class = 2.0

/obj/item/weapon/cannibis/attackby(obj/item/weapon/W as obj,mob/user as mob)
	..()
	if(istype(W,/obj/item/weapon/paper))
		user << "You roll the cannibis in the paper."
		var/obj/item/clothing/mask/joint/J = new/obj/item/clothing/mask/joint(get_turf(src))
		del(W)
		del(src)
		user.put_in_hand(J)
	else
		return

/obj/item/clothing/mask/cigarette/joint
	name = "Cannibis Joint"
	desc = "A roll of cannibis."
	icon = 'Cannibis.dmi'
	icon_state = "jointoff"
	throw_speed = 0.5
	item_state = "jointoff"
	w_class = 1
	body_parts_covered = null
	lit = 0
	icon_on = "jointon"  //Note - these are in masks.dmi not in cigarette.dmi
	icon_off = "jointoff"
	icon_butt = "jointbutt"
	lastHolder = null
	smoketime = 300
	chem_volume = 15

/obj/item/clothing/mask/cigarette/joint/New()
	..()
	reagents.add_reagent("space_drugs",15)

/obj/item/clothing/mask/cigarette/joint/afterattack()
	return

/obj/item/clothing/mask/cigarette/joint/put_out()
	if (src.lit == -1)
		return
	src.lit = -1
	src.damtype = "brute"
	src.icon_state = icon_butt
	src.item_state = icon_off
	src.desc = "A [src.name] butt."
	src.name = "[src.name] butt"